﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ARS.Control.Custom.SelectLinkage.Attributes;

namespace NetWebControl.ControlTest
{
    public partial class SlA : System.Web.UI.Page
    {
        public class MyClass:DbSelectSL
        {
            public MyClass()
            {
                this.TableName = "System_Menu_Info";
                this.KeyField = "System_Menu_Info_Id";
                this.DataTextField = "Name";
                this.DataValueField = "System_Menu_Info_Id";
                this.ParentNameField = "ParentId";
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.SelectLinkage1.DbSelectSLListItem = new DbSelectSL[] { new MyClass() { StrWhere = "ParentId=0" }, new MyClass() };
            this.SelectLinkage1.valueList = new[] {"9","25"};
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string value = this.SelectLinkage1.GetInputValue();
            int a = 1;
        }
    }
}